﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;

namespace Mjudoku
{
    class MjudokuBox : TextBox
    {

        private int row;
        public int Row
        {
            get
            {
                return row;
            }
            private set
            {
                if (value >= 0 && value <= 9)
                {
                    row = value;
                }
            }
        }

        private int column;
        public int Column
        {
            get
            {
                return column;
            }
            private set
            {
                if (value >= 0 && value <= 9)
                {
                    column = value;
                }
            }

        }

        public MjudokuBox(int row, int column)
        {
            this.Row = row;
            this.Column = column;

        }

        private void InitializeComponent()
        {            
            this.SuspendLayout();
            // 
            // MjudokuButton
            //             
            this.ResumeLayout(false);            
        }
    }
}
